package org.ocean.general.sample.repository;

import org.ocean.general.sample.conditional.Conditional;
import org.ocean.general.sample.page.PageInfo;

import java.util.List;

public interface ServiceRepository<T> {
    List<T> selectList();
    List<T> selectByIds(String ids);
    T selectByPrimaryKey(Object key);
    int selectByCount();
    int selectByConditionalCount(Conditional conditional);
    List<T> selectByConditional(Conditional conditional);
    PageInfo<T> selectPageByConditional(PageInfo<T> pageInfo, Conditional conditional);
    PageInfo<T> selectBetweenPageByPrimaryKey(PageInfo<T> pageInfo);
    PageInfo<T> selectPageBySpecify(PageInfo<T> pageInfo, Conditional conditional);
}
